package com.sendi.system.action;

import java.util.List;

import net.sf.json.JSONArray;

public class SysGlobalAction extends SysAction {
	
	public String datasessionname;
	public String excutesql;
	 
	public void queryGraphData()
	{ 
		List datas=null;
 		if(getSession().getAttribute(datasessionname)!=null)
		{
			datas=(List)getSession().getAttribute(datasessionname);
		    String responseText=JSONArray.fromObject(datas).toString();
		  //  System.out.println(responseText);
		    this.writeResponseText(responseText);
	 	}
		 
	}
	/*
	 * jdbc 查询功能
	 */
	public void excutejdbcQuery()
	{
		 if(excutesql!=null&&excutesql.trim().length()>0)
		 {
			   excutesql=excutesql.trim();
			   
			 
		 }
		
	}
	public String getDatasessionname() {
		return datasessionname;
	}
	public void setDatasessionname(String datasessionname) {
		this.datasessionname = datasessionname;
	}
	public String getExcutesql() {
		return excutesql;
	}
	public void setExcutesql(String excutesql) {
		this.excutesql = excutesql;
	}
 
}
